package com.bogo.dbtable.service.dbtable.mapper;

import com.bogo.dbtable.modelVo.table.TableVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @Author: CHICHI
 * @Date: 2025-05-09-9:23
 * @Description:
 */
@Repository
@Mapper
public interface TableMapper {
    void insertData(@Param("tableName")String tableName,@Param("fieldContent") String fieldContent, @Param("tableComment")String tableComment, @Param("addtime")Date addTime);

    List<TableVo> getTable();

    TableVo getTableBytableName(String tableName);

    void updateData(@Param("fieldContent")String fieldContent, @Param("tableComment")String tableComment,@Param("tableName")String tableName,@Param("updateTime") Date updateTime);

    void deleteTable(Integer id);

    String selectTableNameById(Integer id);
}
